package entity

import (
	"shqsoft.cn/pasnj/base"
)

type PermissionType struct {
	PermissionType    string `gorm:"primary_key;column:PermissionType"`
	PermissionTypeDes string `gorm:"column:PermissionTypeDes"`
}

//TableName Role 角色表名
func (PermissionType) TableName() string {
	return "t_PermissionType"
}

func PermissionTypeEF() base.EntityFunc {
	return func() interface{} {
		entity := PermissionType{}
		return &entity
	}
}
func PermissionTypeESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []PermissionType
		return &entities
	}
}

func init() {
	base.DaoPoolObj.Put("PermissionType", base.NewDefaultDao(PermissionTypeEF(), PermissionTypeESF(), nil))
}
